package com.uzai.console.dto.jd.jdtoken;

import com.uzai.console.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author liuqi
 * @date 2021年08月20日 11:09
 */
@ApiModel("京东token信息详情参数")
public class JdTokenInfoDto extends BaseDto {
    @ApiModelProperty("主键id，添加时没有，修改时需要")
    private Long id;

    @ApiModelProperty("联盟ID（只添加京东联盟时使用）")
    private String unionId;

    @ApiModelProperty("渠道编号（只添加京拥联盟时使用）")
    private String authKey;

    @ApiModelProperty("默认pid")
    private String defPid;

    @ApiModelProperty("0京东联盟 1京东京佣")
    private Integer type;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("查询比例,0: 实际订单比例计算, 1: 查询时的比例")
    private Integer queryRatio;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public Integer getType() {
        if(type == null){
            type = 0;
        }
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getAuthKey() {
        return authKey;
    }

    public void setAuthKey(String authKey) {
        this.authKey = authKey;
    }

    public Integer getQueryRatio() {
        return queryRatio;
    }

    public void setQueryRatio(Integer queryRatio) {
        this.queryRatio = queryRatio;
    }

    public String getDefPid() {
        return defPid;
    }

    public void setDefPid(String defPid) {
        this.defPid = defPid;
    }
}
